﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Compiler
{
    public class LexAssign : LexNode
    {
        IntegerNode terminalId;
        EbnfToken token;
        string regex;

        public LexAssign(IntegerNode terminalId, EbnfToken token, string regex)
        {
            this.terminalId = terminalId;
            this.token = token;
            this.regex = regex;
        }

        public override string ToString()
        {
            return token.ToString() + " = " + regex.ToString();
        }
    }
}
